import requestr from "@/utils/request";
import qs from "qs"

// 订单全部信息
export function Order(params) {
    return requestr({
        url: '/create/status',
        method: "get",
        params: params
    })
}

// 删除订单
export function deletr(params) {
    return requestr({
        url: '/create/delorder',
        method: "get",
        params: params
    })
}

// 查询所有地址
export function addresses(params) {
    return requestr({
        url: '/address/selsite',
        method: "get",
        params: params
    })
}

//购物车商城订单
export function Jiaorder(params) {
    return requestr({
        url: '/create/order',
        method: "get",
        params: params
    })
}
//通过订单号查询订单详细内容
export function Jiaorder_main(params) {
    return requestr({
        url: '/create/QueryOrderinfo',
        method: "get",
        params: params
    })
}

//订单支付确认键

export function Jiaorder_money(data) {
    return requestr({
        url: '/pay/payment',
        method: "post",
        data: qs.stringify(data)
    })
}

